const { defineConfig } = require('@vue/cli-service')
var pxtorem = require('postcss-pxtorem');
module.exports = defineConfig({
  transpileDependencies: true,
  // 2.配置pxtorem实现页面多终端适配
  css: {
    loaderOptions: {
      postcss: {
        // 这里的选项会传递给 postcss-loader
        postcssOptions: {
          plugins: [
            pxtorem({
              rootValue: 16,
              propList: ['*'],
            })
          ],
        },
      }
    }
  }
})
